package cn.wwk.canal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @author wwk
 * @TableName community
 */
@TableName(value ="community")
@Data
public class Community implements Serializable {
    /**
     * 社区主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 社区名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 社区负责人ID，此人也在user表中
     */
    @TableField(value = "principal")
    private Integer principal;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}